import request from 'network/index'

//上传图片服务器
export function HeaderImg(file) {
  return request({
    method: 'post',
    url: '/image/upload',
    data: file,
    headers: {
      'content-type': 'multipart/form-data',
    },
  })
}

//上传房源照片
export function uploadingHousePicture(file) {
  return request({
    method: "post",
    url: "/image/upload",
    data: file,
    headers: {
      'content-type': 'multipart/form-data',
    }
  })
}

//请求图片地址
export function requsetImgPath(){
  return request({
    url:"/image/download"
  })
}